function doSearch() {
	$('#tt').datagrid('load', {
		mark : $('#mark').val(),
		startTime : $('#startTime').datebox('getValue'),
		endTime : $('#endTime').datebox('getValue')
	});
}

$(function(){
    $('#tt').datagrid({
        view: detailview,
        detailFormatter:function(index,row){
            return '<div class="ddv" style="padding:5px 0"></div>';
        },
        onExpandRow: function(index,row){
            var ddv = $(this).datagrid('getRowDetail',index).find('div.ddv');
            ddv.panel({
                height:'auto',
                border:false,
                cache:false,
                href:'/newTask/execution/loginType/detailList?mark='+row.mark+'&day='+row.day,
                onLoad:function(){
                    $('#tt').datagrid('fixDetailRowHeight',index);
                }
            });
            $('#tt').datagrid('fixDetailRowHeight',index);
        }
    });
});